//public 公共的
//protected 子类可用
//private //私有的
class xiao{
    public sex:string
    protected  name:string
    private  age:string
    public  constructor(sex:string,name:string,age:string){
        this.sex=sex
        this.name=name
        this.age=age
    }
    public say(){
        console.log('hbkjh')
    }
    public sayss(){
        console.log('hbkjhbvvc')
    }
}
var x:xiao=new xiao('女','jvgb',22)
console.log(x.sex)
console.log(x.name)